import 'package:dingtalk/core/model/message_item_model.dart';
import 'package:dingtalk/core/sqflite/chat_message_record_data.dart';
import 'package:dingtalk/mock/mock_message.dart';

class MockChatMessageRecord {
  static Future<void> initChatMessageRecord() async {
    List<THMessageItemModel> messageList = THMockMessage.messageList;
    for (int i = 0; i < messageList.length; i++) {
      THMessageItemModel model = messageList[i];
      await ChatMessageRecordProvider.instance.saveChatMessageRecord(model);
    }
  }
}
